home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 4: GNU Archives / Linux Cubed Series 4 - GNU Archives.iso / gnu / gawk-3.000 / gawk-3 / gawk-3.0.0 / configure.in < prev    next >
Encoding:
Text File  |  1995-12-19  |  2.6 KB  |  105 lines

  1. dnl
  2. dnl configure.in --- autoconf input file for gawk
  3. dnl 
  4. dnl Copyright (C) 1995 the Free Software Foundation, Inc.
  5. dnl 
  6. dnl This file is part of GAWK, the GNU implementation of the
  7. dnl AWK Programming Language.
  8. dnl 
  9. dnl GAWK is free software; you can redistribute it and/or modify
  10. dnl it under the terms of the GNU General Public License as published by
  11. dnl the Free Software Foundation; either version 2 of the License, or
  12. dnl (at your option) any later version.
  13. dnl 
  14. dnl GAWK is distributed in the hope that it will be useful,
  15. dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
  16. dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  17. dnl GNU General Public License for more details.
  18. dnl 
  19. dnl You should have received a copy of the GNU General Public License
  20. dnl along with this program; if not, write to the Free Software
  21. dnl Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA
  22. dnl
  23.  
  24. dnl Process this file with autoconf to produce a configure script.
  25.  
  26. dnl this makes sure that the local install-sh gets found
  27. dnl define(AC_CONFIG_AUX_DIR,)
  28.  
  29. dnl This is the configure.in script proper
  30. AC_INIT(awk.h)
  31. AC_PREREQ(2.7)
  32. AC_CONFIG_HEADER(config.h:configh.in)
  33.  
  34. dnl checks for programs
  35. AC_PROG_YACC
  36. AC_PROG_CC
  37. AC_PROG_CPP
  38. AC_PROG_INSTALL
  39. AC_PROG_MAKE_SET
  40.  
  41. if test "$CFLAGS" = ""
  42. then
  43. dnl    no user provided CFLAGS, feel free to do this our way
  44.     if test "$GCC" = yes
  45.     then
  46.         CFLAGS="-g -O"
  47.     else
  48. dnl        go for speed, not debugging. :-)
  49.         CFLAGS="-O"
  50.     fi
  51. fi
  52. AC_SUBST(CFLAGS)
  53.  
  54. dnl checks for systems
  55. AC_AIX
  56. AC_ISC_POSIX
  57. AC_MINIX
  58.  
  59. dnl checks for header files
  60. AC_HEADER_STDC
  61. AC_HEADER_SYS_WAIT
  62. AC_CHECK_HEADERS(limits.h stdarg.h unistd.h signum.h sys/param.h string.h)
  63. if test "$ac_cv_header_string_h" = yes
  64. then
  65.     AC_CHECK_HEADERS(memory.h)
  66. else
  67.     AC_CHECK_HEADERS(strings.h)
  68. fi
  69.  
  70. dnl checks for typedefs
  71. AC_TYPE_PID_T
  72. AC_TYPE_SIGNAL
  73. AC_SIZE_T
  74. AC_TYPE_GETGROUPS
  75. AC_EGREP_HEADER([int.*sprintf], stdio.h,
  76.     AC_DEFINE(SPRINTF_RET, int),
  77.     AC_DEFINE(SPRINTF_RET, char *))
  78.  
  79. dnl checks for functions
  80. if test "$YACC" = "bison -y" ||
  81.  { test -f $srcdir/awktab.c && grep 'alloca *(' $srcdir/awktab.c > /dev/null; }
  82. then
  83.     AC_FUNC_ALLOCA
  84. fi
  85. AC_DEFINE(REGEX_MALLOC)
  86. AC_FUNC_VPRINTF
  87.  
  88. AC_CHECK_FUNCS(memset memcpy memcmp fmod random strchr strerror strftime strncasecmp strtod system tzset)
  89.  
  90. dnl check for how to use getpgrp
  91. AC_FUNC_GETPGRP
  92.  
  93. dnl checks for structure members
  94. AC_STRUCT_ST_BLKSIZE
  95. AC_HEADER_TIME
  96. AC_STRUCT_TM
  97. AC_STRUCT_TIMEZONE
  98.  
  99. dnl checks for compiler characteristics
  100. AC_C_CHAR_UNSIGNED
  101. AC_C_CONST
  102. GAWK_AC_C_STRINGIZE
  103.  
  104. AC_OUTPUT(Makefile doc/Makefile test/Makefile awklib/Makefile, [date > stamp-h])
  105.